using CommunityToolkit.Maui;
using MauiTurntable.ViewModel;

namespace MauiTurntable;

public partial class cvInfoEdit : ContentView
{
    IPopupService popupService;
    public cvInfoEdit()
    {
        InitializeComponent();
        this.Loaded += CvInfoEdit_Loaded;
        //this.popupService = Handler.MauiContext.Services.GetService< IPopupService>(); 
        // this.popupService = Application.Current.Windows[0].Page.Handler.MauiContext.Services.GetService<IPopupService>();

    }

    private void CvInfoEdit_Loaded(object? sender, EventArgs e)
    {
     
        this.popupService = Handler.MauiContext.Services.GetService<IPopupService>();
    }

 
}